package com.dashuaibran.joker.service.mysqlimpl;

import java.util.Date;

import com.dashuaibran.joker.dao.IUserDao;
import com.dashuaibran.joker.factory.BeanFactory;
import com.dashuaibran.joker.service.IUserService;

public class ConstructorArgUserService implements IUserService {

	private String nameString;
	private Integer ageInteger;
	private Date birthdayDate;

	public ConstructorArgUserService(String nameString, Integer ageInteger, Date birthdayDate) {
		this.ageInteger = ageInteger;
		this.birthdayDate = birthdayDate;
		this.nameString = nameString;
	}

	private IUserDao userDao = (IUserDao) BeanFactory.getBean("UserDao");

	public void find() {
		// TODO Auto-generated method stub
		userDao.find();
	}

	public void printArg() {
		System.out.println(nameString + "," + ageInteger + "," + birthdayDate);
	}

}
